package com.example.interactservice.service;

import com.example.feign.result.AjaxResult;
import com.example.interactservice.entity.BookReviewsBranch;
import com.example.interactservice.entity.BookReviewsRoot;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 软工2104-李家强-2100770248
 * @since 2023-09-21
 */
public interface BookReviewsRootService extends IService<BookReviewsRoot> {

    AjaxResult likeReview(Long targetId, String token);

    BookReviewsRoot getReviewById(Long bookReviewsBranchId, String userId);

    List<BookReviewsRoot> getAllReviews(Long targetBook, Long targetChapter, String token);

    boolean insertRootReview(BookReviewsRoot bookReviewsRoot);

    boolean deleteRootReview(Long targetId);
}
